/** 
*
* @author  jiwf 
* @date 创建时间：2016年10月14日 上午10:38:32 
* @version 1.0 
* @since  
*  
*/
package com.xbstar.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.xbstar.bean.DestinationInfor;

public interface DestinationRepository extends CrudRepository<DestinationInfor, Long> {
	List<DestinationInfor> findByCityName(String cityName);
	List<DestinationInfor> findByCityNameLike(String cityName);
	 @Query("from DestinationInfor order BY indexFor ASC,Id DESC") 
	List<DestinationInfor> findAllOrderbyIndexAndId();
}
